/********************************************************/
/*	Copyright (C) 2012 Gong Li Bin			*/
/*	Project:	MapReduce			*/
/*	Author:		gong_libin			*/
/*	Date:		2012_08_30			*/
/*	File:		MrAvg.h				*/
/********************************************************/

#ifndef _MRAVG_H
#define	_MRAVG_H

#include "MrCmd.h"

typedef struct tagMrAvg
{
	float m_fMin01;
	float m_fMin05;
	float m_fMin15;
}MRAVG_S;

class CMrAvg : public CMrCmd
{
public:
	CMrAvg();
	virtual ~CMrAvg();

	void MrAvgInfo(char* pszResult);

	virtual void* MrCmdResultGet();
	virtual void MrCmdResultReset();
	virtual void MrCmdResultSet(void* pResult);

	virtual void MrCmdDisplay();
	virtual void MrCmdInfo(char* pszResult);
	virtual void MrCmdResultInput(UCHAR* puszBuffer, int iLength);
	virtual int MrCmdResultOutput(UCHAR* puszBuffer, USHORT* pusTotal);

private:
	MRAVG_S m_stAvg;

};

#endif /* _MRAVG_H */
